public class Test {
    public static int max(int a,int b) {
        return a>b?a:b;
    }
    public static int max(int a,int b,int c) {
        int tem = max(a,b);
        return max(tem,c);
    }
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int c = 30;
        System.out.println(max(a,b));
        System.out.println(max(a,b,c));
    }
}
